//
//  CTPPhotoSelectorCell.h
//  照片选择器
//
//  Created by 檀志文 on 16/5/19.
//  Copyright © 2016年 ios檀志文. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CTPPhotoSelectorCell;

@protocol CMPPhotoSelectorCellDelegate <NSObject>
// 2.定义协议方法

/// 加号按钮被点击
-(void)photoSelectorCellDidClickAddButton:(CTPPhotoSelectorCell *)cell;

/// 减号按钮被点击
-(void)photoSelectorCellDidClickDeleteButton:(CTPPhotoSelectorCell *)cell;

@end

@interface CTPPhotoSelectorCell : UICollectionViewCell

//cell 要显示的图片
@property (nonatomic, strong) UIImage *image;
//  定义代理属性
@property (nonatomic, weak) id<CMPPhotoSelectorCellDelegate> delegate;

-(void) setupAddButton;

@end
